import QtQuick 2.0
import QtMultimedia 5.0
import "Video.js" as Video

Item {
    objectName: "video"
    property string videosFolderPath: "C:/media/videos"
    property variant excludeVideos: []
    property bool running: false

    Video {
        id: player
        anchors.fill: parent
        fillMode: VideoOutput.PreserveAspectFit
        onStopped: Video.stopped()
    }

    onRunningChanged: {
        if (running) {
            Video.run();
        } else {
            Video.stop();
        }
    }
}
